import http from '../utils/axios';  //引进http

const baseUrl = 'http://dsq.ljc.icu:8080'
interface goodsStatistics{
    pageNum: number,
    pageSize: number,
    time: string,
}
interface tradeData{
    endTime?: string,
    startTime?: string,
    time?: string,
}
interface goodsData{
    time: string,
}

export const goodsStatistics = (data:goodsStatistics)=>{
    return http.post<any>(baseUrl+'/statistics/goodsStatistics',data)
} 

export const goodsStatisticsl = (data:goodsData)=>{
    return http.post<any>(baseUrl+'/statistics/goodsStatistics1',data)
} 

export const tradeData = (data:tradeData)=>{
    return http.post<any>(baseUrl+'/statistics/tradeData',data)
} 

export const tradeOrderData = (data:tradeData)=>{
    return http.post<any>(baseUrl+'/statistics/tradeOrderData',data)
} 